package com.sportcardio.sportcardioui.applpgic;

import com.sportcardio.sportcardioui.NewCardApplication;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import javafx.scene.control.MenuItem;
import javafx.stage.Stage;

/**
 *
 * @author pawaptz
 */
public class SampleController implements Initializable {
    @FXML
    private MenuItem topClose;
    @FXML
    private Label label;

    @FXML
    private void handleTopCloseAction(ActionEvent event) {
        Platform.exit();
    }
    
    @FXML
    private void handleTopCreateACard(ActionEvent event) throws Exception{
        new NewCardApplication().start(new Stage());
    }
    
    @FXML
    private void handleTextInput(ActionEvent event){
        System.err.println("TextChanged");
    }

    @Override
    public void initialize(URL url, ResourceBundle rb) {
        // TODO
    }
}
